import { createApp } from "vue";
import App from "./App.vue";
import i18n from "@/lang/index";
import router from "./router";
import ElementPlus from 'element-plus'
import GUI from "gui-for-vue";
import en from 'element-plus/es/locale/lang/en'
import cn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import "../node_modules/gui-for-vue/dist/index.css"
import { createPinia } from 'pinia'
import "lib-flexible-computer";
import VueCookies from "vue-cookies";


let l = VueCookies.get("frontend_lang");

let locale = en;
if (l != "en_US") {

	locale = cn;
}

createApp(App)
.use(router)
.use(GUI)
.use(i18n).use(ElementPlus, {
	locale: locale
}).use(createPinia()).mount("#app");